package com.xy.blog.article.domain.service.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description: 文章BO
 * @date 2019/10/30 23:06
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ArticleBO {

    private Long id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 描述
     */
    private String description;

    /**
     * 文章首页图片
     */
    private String homeImage;

    private String content;

    private String contentHtml;

    /**
     * 锚点
     */
    private String anchor;

    /**
     * 文章类型
     * markdown 0
     * 富文本 1
     * ...
     */
    private Integer type;

    /**
     * 专栏id
     */
    private Long specialColumnId;

    /**
     * 教程0
     * 文章1
     */
    public Integer course;


    private Integer orders;

    /**
     * 标签
     */
    private List<String> tags;

    /**
     * 分类id
     */
    public Long categoryId;

    /**
     * 分类名称
     */
    public String categoryName;

    /**
     * 0 原创
     * 1 转载
     * 2 翻译
     */
    public Integer articleType;

    /**
     * 0 公开
     * 1 私有
     */
    public Integer publishType;

    /**
     * 赞 数量
     */
    private Long likeCount;
    /**
     * 浏览数量
     */
    private Long viewCount;
    /**
     * 评论数量
     */
    private Long commentCount;


    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private LocalDateTime createTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private LocalDateTime updateTime;






}
